package cate.game.pvp.guildwar.data.msg;

import cate.game.role.Role;
import cate.game.role.RoleSnapshot;
import easy.java.dev.note.NoteField;

public class GWRoleRankRecordInnerReq {

	@NoteField(value = "该条记录所归属的主角de快照")
	public RoleSnapshot owner;

	@NoteField(value = "功勋")
	public long value;

	public static GWRoleRankRecordInnerReq of(Role role){
		GWRoleRankRecordInnerReq data = new GWRoleRankRecordInnerReq();
		data.owner = new RoleSnapshot(role);
		data.value = role.getPvp().guildWar.point;
		return data;
	}
}
